/*
 *  IO.h
 *  jscsh
 *
 *  Created by Jonathan Hohle on 1/9/08.
 *  Copyright 2008 hohle.net. All rights reserved.
 *
 */

//
// var IO = {
//   fileno: null,
//   read: function (name [, length [, offset]]) { [native code] },
//   readlines: function (name [, length [, offset]]) { [native code] }
// };
// 
// IO.prototype.

#include <JavaScriptCore/JavaScriptCore.h>

void IO_extendHost(JSContextRef context, JSObjectRef contextGlobalObject);
JSValueRef IO_read(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);